//
//  ModuleFirst_TravelsDetailsDayModel.m
//  艾听歌
//
//  Created by dllo on 16/5/28.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ModuleFirst_TravelsDetailsDayModel.h"
#import "ModuleFirst_TravelsDetailsNodeModel.h"


@implementation ModuleFirst_TravelsDetailsDayModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
    if ([key isEqualToString:@"id"]) {
        
        self.idd = value;
    }
    
}


- (void)setNodes:(NSMutableArray *)nodes{
    
    _nodes = nodes;
    
    NSMutableArray *array1 = [NSMutableArray array];
    for (NSDictionary *dic1 in _nodes) {
        
        NSMutableArray *array2 = [dic1 objectForKey:@"notes"];
        
        for (NSDictionary *dic2 in array2) {
            
            ModuleFirst_TravelsDetailsNodeModel *model = [[ModuleFirst_TravelsDetailsNodeModel alloc]init];
            [model setValuesForKeysWithDictionary:dic2];
            
            [array1 addObject:model];
        }
        
    }
    
    _nodes = [NSMutableArray arrayWithArray:array1];
    
    
}

@end
